package com.example.good.service;

import com.example.good.entity.Address;

import java.util.List;

public interface IAddressService {
    Integer addNewAddress(
            Integer uid,
            String username,
            Address address
    );
    List<Address> getByUid(Integer uid);
    void setDefault(
            Integer aid,
            Integer uid,
            String username
    );
    void delete(
            Integer aid,
            Integer uid,
            String username
    );
    Address getByAid(
            Integer aid,
            Integer uid
    );
    void updateAddressByAid(
            Integer aid,
            Integer uid,
            String username,
            Address address
    );
}
